snapcraft, hooks: include /usr/share/X11/XErrorDB#432
snapcraft, hooks: include /usr/share/X11/XErrorDB#432alfonsosanchezbeato merged 1 commit intocanonical:mainfrom
Conversation
alfonsosanchezbeato
left a comment
There was a problem hiding this comment.
Please make the directory from 020-extra-files.chroot instead
a0c0b23 to
7a7c7c2
Compare
done |
7a7c7c2 to
8547f8d
Compare
| cat <<'EOF' > /usr/share/X11/XErrorDB | ||
| ! This is a placeholder file for bind mounting XErrorDB from GPU drivers | ||
| ! provider snap. | ||
| EOF |
There was a problem hiding this comment.
Not sure if we need the file, on one side is nice but on the other hand we have plenty of mount points and we do not put files there. I think it is enough to have this as a comment in this script instead.
There was a problem hiding this comment.
The file is the mount point, canonical/snapcraft#6188 which uses bind-file with /usr/share/X11/XErrorDB target
There was a problem hiding this comment.
Got it, thanks for clarifying
|
Per discussion with @Meulengracht we'll use chisel and ship the actual file |
8547f8d to
32b39d0
Compare
Include /usr/share/X11/XErrorDB (~42KB). This avoids needing to ship the file in the GPU drivers snap (typically mesa-2604) and setting it up in place with the help of snap layouts, which in turn would require construction of a writable mimic on top of /usr/share/X11. Signed-off-by: Maciek Borzecki <maciej.borzecki@canonical.com>
32b39d0 to
4d1b0e5
Compare
Meulengracht
left a comment
There was a problem hiding this comment.
Thank you for this! Appreciate the change on direction
alfonsosanchezbeato
left a comment
There was a problem hiding this comment.
LGTM, thanks, this is indeed better
Include /usr/share/X11/XErrorDB (~42KB). This avoids needing to ship the
file in the GPU drivers snap (typically mesa-2604) and setting it up in
place with the help of snap layouts, which in turn would require
construction of a writable mimic on top of /usr/share/X11.
Related: canonical/snapcraft#6188